package com.xbk.seckill.reservation.application.command;

import lombok.Data;

import java.io.Serializable;

/**
 * 预约记录
 *
 * @author xiexu
 * @date 2025/4/23 08:34
 */
@Data
public class SeckillReservationUserCommand implements Serializable {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 商品id
     */
    private Long goodsId;

    public SeckillReservationUserCommand() {
    }

    public SeckillReservationUserCommand(Long userId, Long goodsId) {
        this.userId = userId;
        this.goodsId = goodsId;
    }

    public boolean isEmpty() {
        return this.userId == null
                || this.goodsId == null;
    }

}
